package top.mcwebsite.playandroid.business.message.impl.api

import retrofit2.http.GET
import retrofit2.http.Path
import top.mcwebsite.playandroid.business.message.impl.model.MessageModel
import top.mcwebsite.playandroid.common.network.model.ApiResult
import top.mcwebsite.playandroid.common.network.model.PageModel
import top.mcwebsite.playandroid.common.network.model.RespModel

interface MessageApiService {

    @GET("message/lg/count_unread/json")
    suspend fun newMessageCount(): ApiResult<RespModel<Int>>

    @GET("message/lg/unread_list/{page}/json")
    suspend fun unReadMessages(@Path("page") page: Int): ApiResult<RespModel<PageModel<MessageModel>>>

    @GET("message/lg/readed_list/{page}/json")
    suspend fun readMessages(@Path("page") page: Int) : ApiResult<RespModel<PageModel<MessageModel>>>
}